package edu.tyut.game.logic.network

import edu.tyut.game.logic.model.PoemPoet
import edu.tyut.game.logic.model.WebResult
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface PoemService {

    @POST("poem/getDynasties")
    fun getDynasties(): Call<WebResult<List<String>>>

    @GET("poem/getPoemOrderByClickCount")
    fun getPoemOrderByClickCount(): Call<WebResult<List<PoemPoet>>>

    @GET("poem/getPoemListByDynasty/{dynasty}")
    fun getPoemListByDynasty(@Path("dynasty") dynasty: String): Call<WebResult<List<PoemPoet>>>

    @GET("poem/getPoemListBySearch/{content}")
    fun getPoemListBySearch(@Path("content") content: String): Call<WebResult<List<PoemPoet>>>

    @POST("poem/poemRecommend")
    fun poemRecommend(@Body ids: String): Call<WebResult<String>>
}